#include "State_Initialize.h"

State_Init* State_Init::init = 0;


void State_Init::Enter()
{
//	cout << "Initializing variables and stuff. Yea!!!\n";
}

void State_Init::Execute(D3DApp* g)
{
	//cout << "Executing anything that needs to run right now. Yea!!!\n";
	//This is how we change states. VERY IMPORTANT. Changing ALWAYS happens in Execute.
	g->setState(State_Menu::Instance());
}

void State_Init::Exit()
{
	//cout << "Done with initializing. Going to the Main Menu now.\n";
}

State_Init* State_Init::Instance()
{
	if(init == 0)
	{
		//Create a static instance of the class
		init = new State_Init();
	}
	//Feed it to whatever needs it.
	return init;
}